package com.indi.gulimall.order.config;

/**
 * 使用seata代理默认的数据源
 * @author UnityAlvin
 * @date 2021/7/21 19:09
 */
//@Configuration
public class SeataConfig {
//    @Autowired
//    DataSourceProperties dataSourceProperties;
//
//    @Bean
//    public DataSource  dataSource(DataSourceProperties dataSourceProperties){
//        HikariDataSource dataSource = dataSourceProperties.initializeDataSourceBuilder()
//                .type(HikariDataSource.class).build();
//        if (StringUtils.hasText(dataSourceProperties.getName())) {
//            dataSource.setPoolName(dataSourceProperties.getName());
//        }
//        return new DataSourceProxy(dataSource);
//    }
}
